<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	   	<script src="Public/jquery-1.8.2.min.js"></script>
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">
		<div class="alert alert-success">编辑品牌</div>
		<div class="form-group">
			<label for="exampleInputEmail1">品牌名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text" name="bname" value="{{$oldData['bname']}}">
		</div>
		
		<div class="form-group">
			<label for="exampleInputEmail1">缩略图</label>
			<div id="thumbBox">
				<div id="imgShow">
					<img src="{{$oldData['logo']}}" style="width: 100px;" />
					<a href="javascript:;" id="close">X</a>
					<input type="hidden" name="logo" id="" value="{{$oldData['logo']}}" />
				</div>
			</div>
			<script type="text/javascript">
				$(function(){
					$('#close').click(function(){
						$('#imgShow').remove();
						$('#thumbBox').html('<input type="file" name="logo"/>')
					})
				})
			</script>
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">热门</label>
			<br>
			是：<input type="radio" name="ishot" id="" <?php if($oldData['ishot'] == 1){?> checked <?}?>/>
			否：<input type="radio" name="ishot" id="" <?php if($oldData['ishot'] == 2){ ?> checked <?php } ?>/>
			
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text" name="sort" value="{{$oldData['sort']}}">
		</div>
		<input type="hidden" name="bid" id="bid" value="{{$_GET['bid']}}" />
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
